/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ps.server.classes;

/**
 *
 * @author Ricardo
 */
public class zones {
private String id;
private String name;
private int column=3;

    public int getColumn() {
        return column;
    }
    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
private String active;
    public String toXML() {
        String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
                + "<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n"
                + "<zone>\n"
                + "<id>"+ this.getId() +"</id>\n"
                + "<name>"+ this.getName() +"</name>\n"
                + "<active>"+ this.getActive() +"</active>\n"
                + "</zone>\n"
                + "</prestashop>";
        return xml;
    }
      public String[] GetMetaData() {
        return new String[]{"id", "name", "active"};
    }
}
